package myjava.hiding;

public class Root {

   public static void main(String[] args) {
      
      /*
        HIDING IS ALL ABOUT STATIC STUFF! 
        The distinction between hiding and overriding has important implications.
        The version of the overridden method that gets invoked is the one in the subclass.
        The version of the hidden method that gets invoked depends on whether it is invoked from
        the superclass or the subclass. As simple as that! */
      Dad.sayHello(); 
      Son.sayHello(); 
      
   }

}
